"use strict";
cc._RF.push(module, 'ae248AfHdxJSoUjpzh8KqLI', 'Global');
// script/Global.js

"use strict";

var _cc$vv$res;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

cc.vv = cc.vv || {};

//英雄速度
cc.vv.SPEEDX = 8;
cc.vv.SPEEDY = 8;

//缩放系数
cc.vv.SCALEFACTOR = 333;

//是否抬起
cc.vv._upPressed = false;

//滚动动画是否完成
cc.vv.isRollFinishedLock = true;

//是否爬墙
cc.vv.isClimb = false;

//判断是否死亡
cc.vv.isHeroDie = false;

//可以二段跳
cc.vv.isDoubleJump = false;

//获取当前存档的位置
cc.vv.currentPos = cc.v2(-340, -170);

cc.vv.TAG = {
    WALL: 125, //地板
    FLOOR: 126, //最底下地板
    DICI: 1, //地刺
    COIN: 2, //金币
    SPRINGUP: 3, //弹簧上面
    SPRINGDOWN: 4, //弹簧全
    FLOAT: 5, //浮动的块上面
    SAVEPOINT: 6, //存档
    ROCKET: 7, //火箭
    END: 8, //终点
    FLOATWALL: 9, //浮动的块其他三面
    MOTO: 10, //汽艇或者摩托
    MINE: 11, //地雷
    BOMB: 12, //炸弹
    JETTUBE: 13, //喷气筒道具
    JETTUBEEND: 14, //消除喷气筒状态
    FLOR: 100,
    HERODOWN: 80, //英雄脚底
    HERORIGHT: 81, //英雄右手
    HEROLEFT: 82, //英雄左手
    HERO: 88 //人


    //每关获取的金币数
};cc.vv.CoinCount = 0;
cc.vv.CoinTotal = 40;
cc.vv.DeathNum = 0;
cc.vv.GOLDCOIN = 40;
cc.vv.SILVERCOIN = 38;
cc.vv.COPPERCOIN = 35;
//保存本地数据
cc.vv.stageCoin1 = 0;
cc.vv.stageDeath1 = 0;
cc.vv.stageCoin2 = 0;
cc.vv.stageDeath2 = 0;
cc.vv.res = (_cc$vv$res = {}, _defineProperty(_cc$vv$res, "Rocket", { url: "herorocket", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "jump", { url: "herojump08", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "boos", { url: "boostBoom", type: cc.Prefab }), _defineProperty(_cc$vv$res, "Climb", { url: "hcr_3", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "Plane", { url: "plane", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "Moto", { url: "moto", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "gold", { url: "guigold1", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "silver", { url: "guigold2", type: cc.SpriteFrame }), _defineProperty(_cc$vv$res, "copper", { url: "guigold3", type: cc.SpriteFrame }), _cc$vv$res);

cc.vv.STATE = {
    "Stand": { Stand: false, RunLeft: true, RunRight: true, Jump: true, Down: true, Roll: true, Climb: false, Fall: false, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'RunLeft': { Stand: true, RunLeft: false, RunRight: true, Jump: true, Down: true, Roll: true, Climb: false, Fall: true, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'RunRight': { Stand: true, RunLeft: true, RunRight: false, Jump: true, Down: true, Roll: true, Climb: false, Fall: true, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'Jump': { Stand: false, RunLeft: true, RunRight: true, Jump: false, Down: false, Roll: false, Climb: true, Fall: true, DoubleJump: true, Rocket: true, Moto: true, Finished: true, Death: false },
    'Down': { Stand: true, RunLeft: true, RunRight: true, Jump: false, Down: false, Roll: true, Climb: false, Fall: false, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'Roll': { Stand: true, RunLeft: true, RunRight: true, Jump: true, Down: true, Roll: false, Climb: false, Fall: true, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'Climb': { Stand: true, RunLeft: false, RunRight: true, Jump: true, Down: false, Roll: false, Climb: false, Fall: true, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'Fall': { Stand: true, RunLeft: true, RunRight: true, Jump: false, Down: false, Roll: false, Climb: true, Fall: false, DoubleJump: true, Rocket: true, Moto: true, Finished: true, Death: false },
    'DoubleJump': { Stand: false, RunLeft: true, RunRight: true, Jump: false, Down: false, Roll: false, Climb: true, Fall: true, DoubleJump: false, Rocket: true, Moto: true, Finished: true, Death: false },
    'Rocket': { Stand: false, RunLeft: false, RunRight: false, Jump: false, Down: false, Roll: false, Climb: false, Fall: true, DoubleJump: false, Rocket: false, Moto: true, Finished: true, Death: false },
    'Moto': { Stand: false, RunLeft: false, RunRight: false, Jump: false, Down: false, Roll: false, Climb: false, Fall: true, DoubleJump: false, Rocket: false, Moto: true, Finished: true, Death: false },
    'Finished': { Stand: false, RunLeft: false, RunRight: false, Jump: false, Down: false, Roll: false, Climb: false, Fall: true, DoubleJump: false, Rocket: false, Moto: true, Finished: false, Death: false },
    'Death': { Stand: false, RunLeft: false, RunRight: false, Jump: false, Down: false, Roll: false, Climb: false, Fall: false, DoubleJump: false, Rocket: false, Moto: false, Finished: false, Death: false }
    //水里
};cc.vv.SWIMMING = {
    'Motionless': { Motionless: false, Advance: true, Retreat: true, Left: true, Right: true },
    'Advance': { Motionless: true, Advance: false, Retreat: false, Left: true, Right: true },
    'Retreat': { Motionless: true, Advance: false, Retreat: false, Left: true, Right: true },
    'Left': { Motionless: true, Advance: true, Retreat: true, Left: false, Right: false },
    'Right': { Motionless: true, Advance: true, Retreat: true, Left: false, Right: false }
    //纸飞机
};cc.vv.SKY = {
    'rising': { rising: false, decline: false, uplift: true, accelerated: true },
    'decline': { rising: false, decline: false, uplift: true, accelerated: true },
    'accelerated': { rising: false, decline: false, uplift: true, accelerated: false },
    'uplift': { rising: true, decline: true, uplift: false, accelerated: true }
};

cc._RF.pop();